package me.caofeng.service.api;

import com.alipay.demo.trade.model.builder.AlipayTradePrecreateRequestBuilder;
import me.caofeng.pojo.Response;

import java.util.Map;

/**
 * Copyright © 2017曹峰. All rights reserved.
 *
 * @Prject: mall
 * @Package: me.caofeng.service.api
 * @Description:
 * @Author: 曹峰 blog.caofeng.me
 * @Date: 2017-06-28 19:01
 * @Version: V1.0
 */
public interface IAlipayService {
    Response<String> pay(AlipayTradePrecreateRequestBuilder tradePrecreateRequestBuilder);

    Response getPayStatus(String orderId);

    /**
     * 验证回调参数
     * @param map
     * @return success 验证成功  failure验证失败
     *
     */
    Object verifyCallback(Map<String,String> map);

}
